﻿<UserControl x:Class="Hisaab.Client.Modules.Core.Tag.View.TagsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Helpers="clr-namespace:Hisaab.Client.Common.Helpers;assembly=Hisaab.Client.Common"
             Helpers:RibbonTabVisibilityBehaviour.ContextualGroup="{Binding ElementName=cmTag, Mode=OneWay}"
             Helpers:RibbonTabVisibilityBehaviour.IsVisible="{Binding IsActive, Converter={StaticResource VisibilityConverter}}"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300" >
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300*" />
            <ColumnDefinition Width="6" />
            <ColumnDefinition Width="300*" />
        </Grid.ColumnDefinitions>
        <ListBox Grid.Column="0" ItemsSource="{Binding Tags}" SelectedItem="{Binding SelectedTag, Mode=TwoWay}" SelectionMode="Single" HorizontalContentAlignment="Stretch" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Name}" />
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <GridSplitter Grid.Column="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
        <Grid Grid.Column="2" >
            <TextBlock>This is sample tag</TextBlock>
        </Grid>
    </Grid>
</UserControl>